import http from "@/utils/servers";

// 登录
export const login = (data) => {
  return http.post( "/admin/login/login",data);  
};

// 登出
export const logout = (data) => {
  return http.post( "/admin/login/logout",data);  
};

// 获取配置
export const getLoginConfig = (data) => {
  return http.post( "/admin/login/getLoginConfig",data);  
};

// 获取配置
export const getSliderVerify = (data) => {
  return http.post( "/admin/login/getSliderVerify",data);  
};

// 发送短信
export const getPhoneCode = (data) => {
  return http.post( "/admin/login/getPhoneCode",data);  
};

// 手机登录
export const phoneLogin = (data) => {
  return http.post( "/admin/login/phoneLogin",data);  
};